import request from "../../http";
const dataDict = {
  async getDictData(query) {
    return request({
      url: "/api/customControl/dict/list",
      method: "get",
      params: query
    });
  },
  async queryDictData(query) {
    return request({
      url: "/api/customControl/dict/list",
      method: "get",
      params: query
    });
  },
  async postDictData(params) {
    return request({
      url: "/api/customControl/dict",
      method: "post",
      data: params
    });
  },
  async disableDict(params) {
    return request({
      url: "/api/customControl/dict/disable",
      method: "put",
      data: params
    });
  },
  async getDictList(query) {
    return request({
      url: "/api/customControl/dict",
      method: "get",
      params: query
    });
  }
};

export default dataDict;
